# -*- coding: utf-8 -*- 

###########################################################################
## Python code generated with wxFormBuilder (version Feb  9 2012)
## http://www.wxformbuilder.org/
##
## PLEASE DO "NOT" EDIT THIS FILE!
###########################################################################

from case_control_list import CaseControlPhenotypeList
import wx
import wx.xrc

###########################################################################
## Class CaseControl
###########################################################################

class CaseControl ( wx.Panel ):
	
	def __init__( self, parent ):
		wx.Panel.__init__ ( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( 800,600 ), style = wx.TAB_TRAVERSAL )
		
		bSizer41 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_staticText25 = wx.StaticText( self, wx.ID_ANY, u"Case control", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText25.Wrap( -1 )
		self.m_staticText25.SetFont( wx.Font( 14, 74, 90, 90, False, "sans" ) )
		
		bSizer41.Add( self.m_staticText25, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		self.analysis_title = wx.StaticText( self, wx.ID_ANY, u"some analysis", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTRE )
		self.analysis_title.Wrap( -1 )
		self.analysis_title.SetFont( wx.Font( 10, 74, 94, 90, False, "sans" ) )
		
		bSizer41.Add( self.analysis_title, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		self.m_staticline10 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
		bSizer41.Add( self.m_staticline10, 0, wx.ALL|wx.EXPAND, 5 )
		
		bSizer43 = wx.BoxSizer( wx.VERTICAL )
		
		mode_radioboxChoices = [ u"One by one", u"One by all" ]
		self.mode_radiobox = wx.RadioBox( self, wx.ID_ANY, u"Mode", wx.DefaultPosition, wx.Size( 200,-1 ), mode_radioboxChoices, 2, wx.RA_SPECIFY_COLS )
		self.mode_radiobox.SetSelection( 1 )
		bSizer43.Add( self.mode_radiobox, 0, wx.ALL, 5 )
		
		bSizer11 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_staticText9 = wx.StaticText( self, wx.ID_ANY, u"SIgnificance level", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText9.Wrap( -1 )
		bSizer11.Add( self.m_staticText9, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )
		
		self.significance_level = wx.TextCtrl( self, wx.ID_ANY, u"0.05", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer11.Add( self.significance_level, 0, wx.ALL, 5 )
		
		
		bSizer43.Add( bSizer11, 0, 0, 5 )
		
		
		bSizer41.Add( bSizer43, 0, wx.EXPAND, 5 )
		
		bSizer42 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_staticText24 = wx.StaticText( self, wx.ID_ANY, u"Select classes:", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText24.Wrap( -1 )
		bSizer42.Add( self.m_staticText24, 0, wx.ALL, 5 )
		
		self.class_checklist = CaseControlPhenotypeList( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TR_NO_BUTTONS|wx.TR_NO_LINES|wx.SUNKEN_BORDER )
		bSizer42.Add( self.class_checklist, 1, wx.ALL|wx.EXPAND, 5 )
		
		
		bSizer41.Add( bSizer42, 1, wx.EXPAND, 5 )
		
		bSizer421 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_staticText241 = wx.StaticText( self, wx.ID_ANY, u"Select phenotypes:", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText241.Wrap( -1 )
		bSizer421.Add( self.m_staticText241, 0, wx.ALL, 5 )
		
		self.phenotype_checklist = CaseControlPhenotypeList( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TR_NO_BUTTONS|wx.TR_NO_LINES|wx.SUNKEN_BORDER )
		bSizer421.Add( self.phenotype_checklist, 1, wx.ALL|wx.EXPAND, 5 )
		
		
		bSizer41.Add( bSizer421, 1, wx.EXPAND, 5 )
		
		bSizer4 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.cancel_btn = wx.Button( self, wx.ID_ANY, u"Cancel", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer4.Add( self.cancel_btn, 0, wx.ALL, 5 )
		
		self.start_btn = wx.Button( self, wx.ID_ANY, u"Start", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.start_btn.SetDefault() 
		bSizer4.Add( self.start_btn, 0, wx.ALL, 5 )
		
		
		bSizer41.Add( bSizer4, 0, wx.ALIGN_RIGHT, 5 )
		
		
		self.SetSizer( bSizer41 )
		self.Layout()
		
		# Connect Events
		self.mode_radiobox.Bind( wx.EVT_RADIOBOX, self.OnModeSelection )
		self.cancel_btn.Bind( wx.EVT_BUTTON, self.OnCancel )
		self.start_btn.Bind( wx.EVT_BUTTON, self.OnStart )
	
	def __del__( self ):
		pass
	
	
	# Virtual event handlers, overide them in your derived class
	def OnModeSelection( self, event ):
		event.Skip()
	
	def OnCancel( self, event ):
		event.Skip()
	
	def OnStart( self, event ):
		event.Skip()
	

###########################################################################
## Class CaseControl_oldnew
###########################################################################

class CaseControl_oldnew ( wx.Panel ):
	
	def __init__( self, parent ):
		wx.Panel.__init__ ( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( 800,600 ), style = wx.TAB_TRAVERSAL )
		
		bSizer41 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_staticText25 = wx.StaticText( self, wx.ID_ANY, u"Case control", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText25.Wrap( -1 )
		self.m_staticText25.SetFont( wx.Font( 14, 74, 90, 90, False, "sans" ) )
		
		bSizer41.Add( self.m_staticText25, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		self.analysis_title = wx.StaticText( self, wx.ID_ANY, u"some analysis", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTRE )
		self.analysis_title.Wrap( -1 )
		self.analysis_title.SetFont( wx.Font( 10, 74, 94, 90, False, "sans" ) )
		
		bSizer41.Add( self.analysis_title, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		self.m_staticline10 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
		bSizer41.Add( self.m_staticline10, 0, wx.ALL|wx.EXPAND, 5 )
		
		bSizer43 = wx.BoxSizer( wx.VERTICAL )
		
		mode_radioboxChoices = [ u"One-to-one", u"One-to-all" ]
		self.mode_radiobox = wx.RadioBox( self, wx.ID_ANY, u"Mode", wx.DefaultPosition, wx.Size( 200,-1 ), mode_radioboxChoices, 2, wx.RA_SPECIFY_COLS )
		self.mode_radiobox.SetSelection( 1 )
		bSizer43.Add( self.mode_radiobox, 0, wx.ALL, 5 )
		
		bSizer11 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_staticText9 = wx.StaticText( self, wx.ID_ANY, u"SIgnificance level", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText9.Wrap( -1 )
		bSizer11.Add( self.m_staticText9, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )
		
		self.significance_level = wx.TextCtrl( self, wx.ID_ANY, u"0.05", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer11.Add( self.significance_level, 0, wx.ALL, 5 )
		
		
		bSizer43.Add( bSizer11, 0, 0, 5 )
		
		
		bSizer41.Add( bSizer43, 0, wx.EXPAND, 5 )
		
		bSizer42 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_staticText24 = wx.StaticText( self, wx.ID_ANY, u"Select classes:", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText24.Wrap( -1 )
		bSizer42.Add( self.m_staticText24, 0, wx.ALL, 5 )
		
		self.phenotype_checklist = CaseControlPhenotypeList( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TR_NO_BUTTONS|wx.TR_NO_LINES|wx.SUNKEN_BORDER )
		bSizer42.Add( self.phenotype_checklist, 1, wx.ALL|wx.EXPAND, 5 )
		
		
		bSizer41.Add( bSizer42, 1, wx.EXPAND, 5 )
		
		bSizer4 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.cancel_btn = wx.Button( self, wx.ID_ANY, u"Cancel", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer4.Add( self.cancel_btn, 0, wx.ALL, 5 )
		
		self.start_btn = wx.Button( self, wx.ID_ANY, u"Start", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.start_btn.SetDefault() 
		bSizer4.Add( self.start_btn, 0, wx.ALL, 5 )
		
		
		bSizer41.Add( bSizer4, 0, wx.ALIGN_RIGHT, 5 )
		
		
		self.SetSizer( bSizer41 )
		self.Layout()
		
		# Connect Events
		self.mode_radiobox.Bind( wx.EVT_RADIOBOX, self.OnModeSelection )
		self.cancel_btn.Bind( wx.EVT_BUTTON, self.OnCancel )
		self.start_btn.Bind( wx.EVT_BUTTON, self.OnStart )
	
	def __del__( self ):
		pass
	
	
	# Virtual event handlers, overide them in your derived class
	def OnModeSelection( self, event ):
		event.Skip()
	
	def OnCancel( self, event ):
		event.Skip()
	
	def OnStart( self, event ):
		event.Skip()
	

###########################################################################
## Class SelectAnalysisDialog
###########################################################################

class SelectAnalysisDialog ( wx.Dialog ):
	
	def __init__( self, parent ):
		wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 250,300 ), style = wx.DEFAULT_DIALOG_STYLE|wx.DIALOG_NO_PARENT )
		
		self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
		
		bSizer10 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_staticText8 = wx.StaticText( self, wx.ID_ANY, u"Choose an epistasis analysis:", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText8.Wrap( -1 )
		bSizer10.Add( self.m_staticText8, 0, wx.ALL, 5 )
		
		analysis_listChoices = [ u"analysis_1", u"analysis_2", u"analysis_3", u"analysis_4", u"analysis_5" ]
		self.analysis_list = wx.ListBox( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, analysis_listChoices, 0 )
		bSizer10.Add( self.analysis_list, 1, wx.ALL|wx.EXPAND, 5 )
		
		bSizer11 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.cancel_btn = wx.Button( self, wx.ID_ANY, u"Cancel", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer11.Add( self.cancel_btn, 0, wx.ALL, 5 )
		
		self.on_btn = wx.Button( self, wx.ID_ANY, u"OK", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.on_btn.Enable( False )
		
		bSizer11.Add( self.on_btn, 0, wx.ALL, 5 )
		
		
		bSizer10.Add( bSizer11, 0, wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		
		self.SetSizer( bSizer10 )
		self.Layout()
		
		self.Centre( wx.BOTH )
		
		# Connect Events
		self.Bind( wx.EVT_CLOSE, self.OnCancel )
		self.analysis_list.Bind( wx.EVT_LISTBOX, self.OnItemSelected )
		self.cancel_btn.Bind( wx.EVT_BUTTON, self.OnCancel )
		self.on_btn.Bind( wx.EVT_BUTTON, self.OnConfirmSelection )
	
	def __del__( self ):
		pass
	
	
	# Virtual event handlers, overide them in your derived class
	def OnCancel( self, event ):
		event.Skip()
	
	def OnItemSelected( self, event ):
		event.Skip()
	
	
	def OnConfirmSelection( self, event ):
		event.Skip()
	

###########################################################################
## Class CaseControl_old
###########################################################################

class CaseControl_old ( wx.Panel ):
	
	def __init__( self, parent ):
		wx.Panel.__init__ ( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( 800,600 ), style = wx.TAB_TRAVERSAL )
		
		bSizer41 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_staticText25 = wx.StaticText( self, wx.ID_ANY, u"Case control", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText25.Wrap( -1 )
		self.m_staticText25.SetFont( wx.Font( 14, 74, 90, 90, False, "sans" ) )
		
		bSizer41.Add( self.m_staticText25, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		self.analysis_title = wx.StaticText( self, wx.ID_ANY, u"some analysis", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTRE )
		self.analysis_title.Wrap( -1 )
		self.analysis_title.SetFont( wx.Font( 10, 74, 94, 90, False, "sans" ) )
		
		bSizer41.Add( self.analysis_title, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		self.m_staticline10 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
		bSizer41.Add( self.m_staticline10, 0, wx.ALL|wx.EXPAND, 5 )
		
		bSizer43 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_staticText26 = wx.StaticText( self, wx.ID_ANY, u"Select class", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText26.Wrap( -1 )
		bSizer43.Add( self.m_staticText26, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		files_listChoices = [ u"fake_file_class_1", u"fake_file_class_2", u"fake_file_class_3", u"fake_file_class_4", u"fake_file_class_5", u"fake_file_class_6", u"fake_file_class_7", u"fake_file_class_8" ]
		self.files_list = wx.ListBox( self, wx.ID_ANY, wx.DefaultPosition, wx.Size( 200,150 ), files_listChoices, wx.LB_SINGLE|wx.LB_SORT )
		bSizer43.Add( self.files_list, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		mode_radioboxChoices = [ u"One-to-one", u"One-to-all" ]
		self.mode_radiobox = wx.RadioBox( self, wx.ID_ANY, u"Mode", wx.DefaultPosition, wx.Size( 200,-1 ), mode_radioboxChoices, 2, wx.RA_SPECIFY_COLS )
		self.mode_radiobox.SetSelection( 1 )
		bSizer43.Add( self.mode_radiobox, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		bSizer11 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_staticText9 = wx.StaticText( self, wx.ID_ANY, u"SIgnificance level", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText9.Wrap( -1 )
		bSizer11.Add( self.m_staticText9, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )
		
		self.significance_level = wx.TextCtrl( self, wx.ID_ANY, u"0.05", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer11.Add( self.significance_level, 0, wx.ALL, 5 )
		
		
		bSizer43.Add( bSizer11, 0, wx.ALIGN_CENTER_HORIZONTAL, 5 )
		
		
		bSizer41.Add( bSizer43, 0, wx.EXPAND, 5 )
		
		bSizer42 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_staticText24 = wx.StaticText( self, wx.ID_ANY, u"Select phenotypes:", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText24.Wrap( -1 )
		bSizer42.Add( self.m_staticText24, 0, wx.ALL, 5 )
		
		self.phenotype_checklist = CaseControlPhenotypeList( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TR_NO_BUTTONS|wx.TR_NO_LINES|wx.SUNKEN_BORDER )
		bSizer42.Add( self.phenotype_checklist, 1, wx.ALL|wx.EXPAND, 5 )
		
		
		bSizer41.Add( bSizer42, 1, wx.EXPAND, 5 )
		
		bSizer4 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.cancel_btn = wx.Button( self, wx.ID_ANY, u"Cancel", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer4.Add( self.cancel_btn, 0, wx.ALL, 5 )
		
		self.start_btn = wx.Button( self, wx.ID_ANY, u"Start", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.start_btn.SetDefault() 
		bSizer4.Add( self.start_btn, 0, wx.ALL, 5 )
		
		
		bSizer41.Add( bSizer4, 0, wx.ALIGN_RIGHT, 5 )
		
		
		self.SetSizer( bSizer41 )
		self.Layout()
		
		# Connect Events
		self.mode_radiobox.Bind( wx.EVT_RADIOBOX, self.OnModeSelection )
		self.cancel_btn.Bind( wx.EVT_BUTTON, self.OnCancel )
		self.start_btn.Bind( wx.EVT_BUTTON, self.OnStart )
	
	def __del__( self ):
		pass
	
	
	# Virtual event handlers, overide them in your derived class
	def OnModeSelection( self, event ):
		event.Skip()
	
	def OnCancel( self, event ):
		event.Skip()
	
	def OnStart( self, event ):
		event.Skip()
	

